Metadata-Version: 2.1
Name: Headers as Dependencies
Version: 0.3
Summary: Generate command-line options for C compiler from used headers
Home-page: https://github.com/fpom/had
Author: Franck Pommereau
Author-email: franck.pommereau@univ-evry.fr
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Compilers
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Programming Language :: Python :: 3.7
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENCE

# Headers as Dependencies

HaD reads the `#include`d headers from a bunch of C files and prints the corresponding compiler options.
For instance, if `#include <math.h>` is used, option `-lm` is required, or if `#include <pthread.h>` is used, `-pthread` is required.

To do so, HaD relies on a database maintained by hand, as well as on `pkg-config`.
It currently supports only GCC and Clang on Linux.

## Contributions welcome!

You can help a lot by enriching files `hadlib/*.cfg`.
This is actually the heart of the tool.
All the rest is simple code to read and present this knowledge.

## Licence

HaD is published as free software under the terms of the MIT licence


